package game;

import ability.Adlerschrei;
import ability.Aufspiessen;
import ability.AugenAuspicken;
import ability.Bauchreflex;
import ability.DickeHaut;
import ability.Federflut;
import ability.Runterwerfen;
import ability.Stampfen;
import android.R.anim;
import animal.Animal;

public class Charakter {
	private int charID;
	private int gameID=0 ;
	private String name;
	private int animalID;
	private Animal animal;
	private int streng;
	private int vita;
	private int intel;
	private int agil;
	private boolean isAttacker = false;
	private int exp = 0;
	private int lv = 1;
	
	public int getGameID() {
		return gameID;
	}

	public void setGameID(int gameID) {
		this.gameID = gameID;
	}

	public Animal getAnimal() {
		return animal;
	}

	public void setAnimal(Animal animal) {
		this.animal = animal;
	}

	public Charakter() {
		
	}
	
	public Charakter(int charID, String name, int animalID, int streng,
			int vita, int intel, int agil, int exp, int lv) {
		super();
		this.charID = charID;
		this.name = name;
		this.animalID = animalID;
		this.streng = streng;
		this.vita = vita;
		this.intel = intel;
		this.agil = agil;
		this.exp = exp;
		this.lv = lv;
	}
	
	public Charakter(int charID, String name, int animalID, int gameID) { // fuer neue Charaktere
		super();
		this.charID = charID;
		this.name = name;
		this.animalID = animalID;
		this.gameID = gameID;
//		this.streng = animal.getInitStreng();
//		this.vita = animal.getInitVita();
//		this.intel = animal.getInitIntel();
//		this.agil = animal.getInitAgil();
	}
	
	public int getCharID() {
		return charID;
	}

	public int getStreng() {
		return streng;
	}
	public void setStreng(int streng) {
		this.streng = streng;
	}
	public int getVita() {
		return vita;
	}
	public void setVita(int vita) {
		this.vita = vita;
	}
	public int getAgil() {
		return agil;
	}
	public void setAgil(int agil) {
		this.agil = agil;
	}

	public boolean isAttacker() {
		return isAttacker;
	}

	public void setAttacker(boolean isAttacker) {
		this.isAttacker = isAttacker;
	}
	
	public int getAnimalID(){
		return animalID;
	}
	
	public void incExp(){
//		exp += 10;
//		if(exp == 50){ // Level 2
//			lv++;
//		}else if(exp == 110){ // Level 3
//			lv++;
//			if(animal.getType().equals("elefant")){
//				animal.addDefenAbility(new DickeHaut(),2);
//			}else if(animal.getType().equals("adler")){
//				animal.addDefenAbility(new Federflut(),2);
//			}
//			
//		}else if(exp == 200){ // Level 4
//			lv++;
//		}else if(exp == 300){ // Level 5
//			lv++;
//			if(animal.getType().equals("elefant")){
//				animal.addOfenAbility(new Aufspiessen(),2);
//			}else if(animal.getType().equals("adler")){
//				animal.addOfenAbility(new AugenAuspicken(),2);
//			}
//			
//		}else if(exp == 500){ // Level 6
//			lv++;
//		}else if(exp == 800){ // Level 7
//			lv++;
//			if(animal.getType().equals("elefant")){
//				animal.addDefenAbility(new Bauchreflex(),3);
//			}else if(animal.getType().equals("adler")){
//				animal.addDefenAbility(new Adlerschrei(),3);
//			}
//			
//		}else if(exp == 1200){ // Level 8
//			lv++;
//		}else if(exp == 2000){ // Level 9
//			lv++;
//		}else if(exp == 3000){ // Level 10
//			lv++;
//			if(animal.getType().equals("elefant")){
//				animal.addOfenAbility(new Stampfen(),3);
//			}else if(animal.getType().equals("adler")){
//				animal.addOfenAbility(new Runterwerfen(),3);
//			}
//		}
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

}
